    /********************************************************/
    /*                                                      */
    /*                                                      */
    /*         Copyright (C), 1993  SEIKO EPSON Corp.       */
    /*         ALL RIGHTS RESERVED                          */
    /*                                                      */
    /*                                                      */
    /*  file name : ferror.c                                */
    /*                                                      */
    /*  Revision history                                    */
    /*      93/12/17    first release       S.Akaiwa        */
    /*      97/3/17	modified	    T.Katahira	    */
    /*			change function declaration	    */
    /*					to the ANSI style   */
    /*                                                      */
    /********************************************************/

#ifdef      UNIX
#include    "stdio.h"
#include    "smcvals.h"
#else
#include    <stdio.h>
#include    <smcvals.h>
#endif

int
ferror(FILE * fiStrmP)


    /********************************************************/
    /*                                                      */
    /*  This is dummy function.                             */
    /*  If stdin, stdout or stderr is not specified by      */
    /*  fiStrmP, the ferror function returns EOF.           */
    /*                                                      */
    /*      RETURN  0           ... Not error               */
    /*              EOF         ... Error generated         */
    /*                                                      */
    /*  <ANSI>                                              */
    /*      The ferror function tests error status in the   */
    /*      stream.                                         */
    /*                                                      */
    /*      RETURN  0           ... Not error               */
    /*              Others      ... Error generated         */
    /*                                                      */
    /********************************************************/

    /* FILE    *fiStrmP    ;       pointer to target stream */
    {
     if(_ISSTDIO(fiStrmP)){                 /* stream stdio */
        return  (int)0;                        /* not error */
     }
     else {                                        /* other */
        return  (int)EOF;                 /* error occurred */
     }
    }


